/***************************************************************
 * Name:      EditeurDessinApp.cpp
 * Purpose:   Code for Application Class
 * Author:    QUEYROI-RAMA ()
 * Created:   2010-01-05
 * Copyright: QUEYROI-RAMA ()
 * License:
 **************************************************************/

#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif

#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__

#include "EditeurDessinApp.h"
#include "sample.xpm"


#define INTER_TIMER 200



IMPLEMENT_APP(EditeurDessinApp);

bool EditeurDessinApp::OnInit()
{

    main = new EditeurDessinMain((wxFrame*)NULL,-1,_T("Editeur Dessin"), wxDefaultPosition,wxSize(900,600)) ;

    main -> SetIcon(wxIcon(sample_xpm));

    main -> Centre() ;
    Connect (wxEVT_TIMER ,wxTimerEventHandler(EditeurDessinApp::OnTimer)) ;
    timer = new wxTimer(this,1);
    timer->Start(INTER_TIMER);
    SetTopWindow(main);
    main->Show();
    return true;
}

void EditeurDessinApp::OnTimer(wxTimerEvent &event){
    main->OnTimer(event);
}







